﻿using System.Windows;
using System.Windows.Controls;
using PoESsb.ViewModel;

namespace PoESsb.View
{
    public partial class LoginView : UserControl, IView
    {
        public LoginView()
        {
            InitializeComponent();
            DataContext = new LoginWindowViewModel(this);
        }

        public new Grid Content
        {
            get { return ViewContent; }
        }

        private void Login_Click(object sender, RoutedEventArgs e)
        {
            (DataContext as LoginWindowViewModel).Login(false);
        }

        private void Offline_Click(object sender, RoutedEventArgs e)
        {
            (DataContext as LoginWindowViewModel).Login(true);
        }
    }
}
